{include 'admin/layout/header_list'}
<link rel="stylesheet" href="__ADMIN_STATIC__/css/plugin.css?random={extendSetting('random')}">
<div class="ltcms_container">
    <div class="container_title">
        <form action="{LTCMS_ROUTE_PREFIX}/friendLinkGroup/index" method="get" class="ltcms_search">
            <input name="name" type="text" placeholder="请输入分组名称" {if isset($request['name'])} value="{$request['name']}" {/if} >
            <button type="submit" class="btn3">搜索</button>
        </form>
    </div>
    <div class="ltcms_list">
        <table class="list_table">
            <col width="40px">
            <col width="50px">
            <col>
            <col>
            <col>
            <col width="100px">
            <tr>
                <td class="th"><input id="selectAll" type="checkbox"></td>
                <td class="th">id</td>
                <td class="th">名称</td>
                <td class="th">上级id</td>
                <td class="th">排序</td>
                <td class="th">操作</td>
            </tr>
            {if $rowData}
            {foreach $rowData["data"] $key $val}
            <tr class="tr">
                <td><input class="checkbox" name="check_id" type="checkbox" value="{$val['id']}"></td>
                <td>{$val["id"]}</td>
                <td >{$val["name"]}</td>
                <td>{$val["pid"]}</td>
                <td>{$val["sort"]}</td>
                <td>
                    <div class="btn4">
                        <a href="{LTCMS_ROUTE_PREFIX}/friendLinkGroup/edit?id={$val['id']}">
                            <i title="编辑" class='btn4-img iconfont icon-bianji'></i>
                        </a>
                        <i onClick="runApi(this)" title="删除" data-close="4" data-submit-url="{LTCMS_ROUTE_PREFIX}/friendLinkGroup?id={$val['id']}" data-method="delete" alt="" class="btn4-img del iconfont icon-delete"></i>
                    </div>
                </td>
            </tr>
            {/foreach}
            {/if}
        </table>
    </div>
    <div class="list-bottom">
        <div class="bottom-left">
            <a href="{LTCMS_ROUTE_PREFIX}/friendLinkGroup/create"><button class="btn2 trash">添加</button></a>
            <a href="{LTCMS_ROUTE_PREFIX}/friendLink/index"><button class="btn2 trash">管理友链</button></a>
            <button class="btn2 del1" onclick="dataMoreDel(this)" data-close="3" data-submit-url="{LTCMS_ROUTE_PREFIX}/friendLinkGroup?id={$val['id']}" data-method="delete"  >彻底删除</button>
        </div>
        <div class="pages">
            {if $rowData }
            {php echo app("P_page")->getPageBarV2($rowData);}
            {/if}
        </div>
    </div>
</div>

<script src="__ADMIN_STATIC__/js/list.js?random={extendSetting('random')}"></script>
{include 'admin/layout/footer'}
